From bb97e2e4836483a4f8f92bb412d8260228a6841b Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 19 May 2009 08:01:36 +0000 Subject: [PATCH] Reverted r46706, misses essential updates, the feature can easily be implemented another way (see CodeReview). For 1.15. --- includes/LinksUpdate.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index d1ac429318..caacb49c26 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -432,14 +432,6 @@ class LinksUpdate { foreach ( $diffs as $name => $sortkey ) { $nt = Title::makeTitleSafe( NS_CATEGORY, $name ); $wgContLang->findVariantLink( $name, $nt, true ); - // for category redirection - if ( $nt->isRedirect() ) { - $at = new Article( $nt ); - $nt = $at->getRedirectTarget(); - // we only redirect a category to another category - if ( $nt->getNamespace() == NS_CATEGORY ) - $name = $nt->getText(); - } $arr[] = array( 'cl_from' => $this->mId, 'cl_to' => $name, -- 2.20.1